package com.lsc.www.day09.hm;

import java.util.Scanner;

public class h3 {
    public static void main(String[] args) {
        System.out.println("输入三个数字：");
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();

        int max = (a > b) ? a : ((b > c) ? b : c);
        System.out.println("最大值：" + max);

        int min = (a < b) ? a : (b < c) ? b : c;
        System.out.println("最小值：" + min);

        System.out.println();
    }
}
